<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>查看个人信息 - 学生意见管理系统</title>
    <!-- 引入网站头部 -->
    <div th:replace="~{include/all_include::title}"/>
    <link rel="stylesheet" th:href="@{/common/resource/bootstrapvalidator/css/form-validation.css}">
    <script type="text/javascript" th:src="@{/common/resource/bootstrapvalidator/js/form-validation.js}"></script>
</head>
<body>
<div th:replace="~{include/all_include::header}"/>
<!-- 网页的主体部分 -->
<div class="container">
    <div class="row">
        <div class="col-md-11 col-sm-offset-1">
            <div class="table-responsive mt-2">
                <table class="table table-striped table-hover">
                    <thead>
                        <tr>
                            <th colspan="2">基本信息</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>邮箱</td>
                            <td th:text="${response.data.one?.email}"></td>
                        </tr>
                        <tr>
                            <td>昵称</td>
                            <td th:text="${response.data.one?.nickName}"></td>
                        </tr>
                        <tr>
                            <td>真实姓名</td>
                            <td th:text="${response.data.one?.trueName}"></td>
                        </tr>
                        <tr>
                            <td>qq</td>
                            <td th:text="${response.data.one?.qq}"></td>
                        </tr>
                        <tr>
                            <td>手机</td>
                            <td th:text="${response.data.one?.phone}"></td>
                        </tr>
                        <tr>
                            <td>微信</td>
                            <td th:text="${response.data.one?.weiXin}"></td>
                        </tr>
                        <tr>
                            <td>生日</td>
                            <td th:text="${response.data.one?.birthday}"></td>
                        </tr>
                        <tr>
                            <td>性别</td>
                            <td th:text="${response.data.one?.sexStr}"></td>
                        </tr>
                        <tr>
                            <td>创建时间</td>
                            <td th:text="${response.data.one?.createTime}"></td>
                        </tr>
                        <tr>
                            <td>更新时间</td>
                            <td th:text="${response.data.one?.updateTime}"></td>
                        </tr>
                        <tr>
                            <td>上次登陆时间</td>
                            <td th:text="${response.data.one?.lastLoginTime}"></td>
                        </tr>
                        <tr>
                            <td>头像</td>
                            <td>
                                <th:block th:if="${response.data.one?.photoPath != null && response.data.one?.photoPath != ''}">
                                    <a target="_blank" th:href="@{${response.data.one?.photoPath}}">
                                        <img th:src="@{${response.data.one?.photoPath}}"
                                             class="img-fluid rounded mx-auto" width="200" height="200">
                                    </a>
                                </th:block>
                                <th:block th:if="${response.data.one?.photoPath == null || response.data.one?.photoPath == ''}">
                                    <a target="_blank" th:href="@{/img/no_pic.png}">
                                        <img th:src="@{/img/no_pic.png}"
                                             class="img-fluid rounded mx-auto" width="200" height="200">
                                    </a>
                                </th:block>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div th:replace="~{include/all_include::footer}"/>
</body>
</html>